package com.cp.weixin.blog.dao;

import com.cp.weixin.blog.repository.Contact;
import org.apache.ibatis.annotations.Insert;
import org.apache.ibatis.annotations.Mapper;
import org.springframework.stereotype.Component;

@Mapper
@Component("contactMapper")
public interface ContactMapper {

    @Insert("INSERT INTO contact (name, phone, add_time, message) VAlUES (#{name, jdbcType=VARCHAR}, #{phone, jdbcType=VARCHAR}, #{add_time, jdbcType=DATE}, #{message, jdbcType=VARCHAR})")
    public int addContact(Contact contact);
}
